package cn.edu.dlut.ssdut.foodCredit2012.model;

import java.util.Date;


import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;



@Entity
@Table(name = "_tax")
public class Tax {
	
	private String name;
	private String taxID;
	private String taxChange;
	private Date changeDate;
	private String licenceID;
	
	private User user;
	
	@Transient
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getTaxID() {
		return taxID;
	}
	public void setTaxID(String taxID) {
		this.taxID = taxID;
	}
	public String getTaxChange() {
		return taxChange;
	}
	public void setTaxChange(String taxChange) {
		this.taxChange = taxChange;
	}
	@Temporal(TemporalType.DATE)
	public Date getChangeDate() {
		return changeDate;
	}
	public void setChangeDate(Date changeDate) {
		this.changeDate = changeDate;
	}
	@Id
	public String getLicenceID() {
		return licenceID;
	}
	public void setLicenceID(String licenceID) {
		this.licenceID = licenceID;
	}
	
	

}
